<template>
  <tr>
          <td><input type="checkbox"></td>
          <!-- <td colspan="5"> -->
           <td> {{name}}</td>
          <td>{{price}}</td>
           <td><button @click="jian">-</button>{{num}} <button @click="jia">+</button></td>
           <td>{{sum}}</td>
           <td><button @click='shan'>删除</button></td>
          <!-- </td> -->
        </tr>
</template>

<script>
export default {
 props:['name', 'price', 'num','sum','index','item'],
 methods:{
  jia(){
    this.$emit('add',this.index)
  },
  jian(){
    this.$emit('reduce',this.index)
  },
  shan(){
    this.$emit('re',this.index)
  }
 }
}
</script>

<style>

</style>